'use strict';
const db = uniCloud.database()
const coll = db.collection('user')
exports.main = async (event, context) => {
	let res = await coll.where(event).count()

	if (res.total > 0) {
		let res2 = await coll.where(event).get()
		return res2
	} else {
		return {
			status: 0,
			msg: 'WWID和密码错误，请重试'
		}
	}



};
